@extends('web.frame_layout')
<?php $parent_menu = "财务中心"; $menu_selected = "打款申请记录";?>
<link rel="stylesheet" href="{{asset('web/css/withdrawal-record.css')}}">
@section('content')
    <div class="m-right-nr">
        <div>
            <h2><span>{{$menu_selected}}</span></h2>
        </div>
        <div class="m-txList">
            <div class="m-txList-title">
                <form action="{{route('web.remit.logs')}}" action="get" id="txjl_search">
                    <select name="type">
                        <option value="1" selected>编号搜索</option>
                        <option value="2">用户名搜索</option>
                    </select>
                    <div>
                        <input type="text" name="search" placeholder="请输入编号进行精准查询">
                        <button>搜索</button>
                    </div>
                </form>
            </div>
            <div class="table-responsive">
                <table class="table">
                    <tr>
                        <th>编号</th>
                        <th>充值类型</th>
                        <th>金额</th>
                        <th>充值方式</th>
                        <th>账户信息</th>
                        <th>联系方式</th>
                        <th>日期</th>
                        <th>处理结果</th>
                        <th>状态</th>
                    </tr>
                    @foreach($logs as $log)
                        <tr class="active" 　>
                            <td>{{ $log->no }}</td>

                            <td>{{ uWalletStr($log->wallet) }}</td>
                            <td>{{ $log->money }}</td>
                            <td>
                                @if($log->type == \App\Models\MWithdrawLog::$PAY_TYPE_YHK)
                                    银行卡打款
                                @elseif($log->type == \App\Models\MWithdrawLog::$PAY_TYPE_ZFB)
                                    支付宝打款
                                @elseif($log->type == \App\Models\MWithdrawLog::$PAY_TYPE_WX)
                                    微信打款
                                @endif
                            </td>
                            <td>
                                @if($log->type==\App\Models\MWallet::$PAY_TYPE_ZFB)
                                    支付宝账号：{{$log->zfb}}
                                @elseif($log->type==\App\Models\MWallet::$PAY_TYPE_WX)
                                    微信账号：{{$log->wx}}
                                @elseif($log->type==\App\Models\MWallet::$PAY_TYPE_YHK)
                                    银行：{{$log->card_bank}}&nbsp;&nbsp;开户人：{{$log->card_name}}&nbsp;&nbsp;卡号：{{$log->card_no}}
                                @endif
                            </td>
                            <td>{{$log->tel}}</td>
                            <td>{{ date("Y-m-d H:i:s",$log->create_time) }}</td>
                            <td>{{ $log->result==''?'暂无':$log->result }}</td>
                            <td>
                                @if($log ->status ==0)
                                    <a href="{{route('web.remit.apply.page',['id'=>$log->id])}}" class="goPay">去打款</a>
                                @elseif($log ->status ==1)
                                    <a href="###" style="background: lightblue">待审核</a>
                                @elseif($log ->status ==2)
                                    <a href="###" style="background: #278067">充值成功</a>
                                @elseif($log->status==3)
                                    <a href="###" style="background: red">充值失败</a>
                                @endif
                            </td>
                        </tr>
                    @endforeach
                </table>
                @include('web.coms.fenye')
            </div>
        </div>
    </div>
@endsection

@section('footer')
@endsection